﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctlFilterList.ascx.cs" Inherits="Ctl_ctlFilterList" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
    <table style="width:100%;" cellpadding ="3" cellspacing ="0">
    <tr>
        <td  style ="font-weight :bold "   >
            Мои фильтры</td>
        <td style ="width :20px"  >
<asp:ImageButton ID="btnClose" runat="server"  ImageUrl="~/images/close.gif" Width="16px" />
        </td>
    </tr>
    
    </table>
    
    <table width="100%">
    <asp:ListView ID="lvUserFilters" runat="server" >
         <LayoutTemplate>                        
            <tr ID="itemPlaceholder" runat="server">
            </tr>
        </LayoutTemplate>        
         <ItemTemplate>          
           <tr>
        <td >
            <asp:LinkButton ID="btnAppFilter" CommandArgument =<%#  (string)Eval ("ID")  %> OnClick ="AppUserFilter_Click" runat="server"><%# Eval ("Name") %></asp:LinkButton>
        </td>
        <td style ="width :20px" >
                <asp:ImageButton ID=btnRemoveFilter CommandArgument =<%#  (string)Eval ("ID")  %> OnClick ="btnUserFilterDelete_Click" runat="server" ImageUrl ="~/images/trash.png" /> 
                <cc1:ConfirmButtonExtender ID=ConfirmButtonExtender1 TargetControlID ="btnRemoveFilter" runat="server" ConfirmText ="удалить фильтр? ">
               </cc1:ConfirmButtonExtender>
                </td>
    </tr>                 

        </ItemTemplate> 
        </asp:ListView> 
    </table>
    
    <table width="100%">
    <asp:ListView ID="lvCommonFilters" runat="server" >
         <LayoutTemplate>         
         <tr >
            <td style ="font-weight :bold ">         
            Общие фильтры
        </td>
            <td style ="width :20px" >
                &nbsp
                </td>
          </tr>               
            <tr ID="itemPlaceholder" runat="server">
            </tr>
        </LayoutTemplate>        
         <ItemTemplate>          
           <tr>
        <td >
            <asp:LinkButton ID="btnAppFilter" CommandArgument =<%#  (string)Eval ("ID")  %> OnClick ="AppCommonFilter_Click" runat="server"><%# Eval ("Name") %></asp:LinkButton>
        </td>
        <td style ="width :20px" >
                <asp:ImageButton ID=btnRemoveFilter CommandArgument =<%#  (string)Eval ("ID")  %> OnClick ="btnCommonFilterDelete_Click" runat="server" ImageUrl ="~/images/trash.png" /> 
                </td>
    </tr>    


        </ItemTemplate> 
        </asp:ListView> 
    </table>
    
<asp:Button ID="btnSave"   style="display:none;vertical-align:top"  runat="server" Text="Сохранить" CssClass="btn_wizard" />






